﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Manon.Core.Commons
{
    public interface IApplicationUser
    {
        /// <summary>
        /// 用户id
        /// </summary>  
        int UserId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary> 
        string UserName { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary> 
        string RealName { get; set; }

        /// <summary>
        /// 是否已经登陆
        /// </summary>
        bool IsLogin { get; set; }

        /// <summary>
        /// 是否平台管理员
        /// </summary>
        bool IsAdmin { get; set; }

        /// <summary>
        /// 是否是仓管
        /// </summary>
        bool IsWarehouseManager { get; set; }

        /// <summary>
        /// 是否是司机
        /// </summary>
        bool IsDriver { get; set; }

        /// <summary>
        /// 是否是站长
        /// </summary>
        bool IsStationMaster { get; set; }

        /// <summary>
        /// 是否是配送员
        /// </summary>
        bool IsDeliver { get; set; }


        /// <summary>
        /// 用户其他信息
        /// </summary> 
        Dictionary<string, string>? UserInfo { get; set; }

        /// <summary>
        /// 获取参数值
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        string Get(string key);
    }
}
